﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ProgNetComponentsDx.Forms
{
    public sealed partial class FormBackGroundWorkSingleThread : FormBackgroundWorkBase
    {
        public object Argument
        {
            get { return backgroundControlSingleThread.Argument; }
            set { backgroundControlSingleThread.Argument = value; }
        }
        public override Controls.BackgroundControlBase BackgroundControl
        {
            get
            {
                return backgroundControlSingleThread;
            }
        }
        public event DoWorkEventHandler DoWork
        {
            add { this.backgroundControlSingleThread.DoWork += value; }
            remove { this.backgroundControlSingleThread.DoWork -= value; }
        }

        public FormBackGroundWorkSingleThread()
        {
            InitializeComponent();
        }
        public FormBackGroundWorkSingleThread(string text)
            : base(text)
        {
            InitializeComponent();
        }
    }
}
